using System;
using System.Collections.Generic;

namespace Net.Common
{
    [Serializable]
    public class LoginRequest
    {
        public string account;
        public string password;
    }

    [Serializable]
    public class MatchRequest
    {
        // 0：发送匹配 1：取消匹配
        public int type;

        public string userName;
        
        // 玩家组队类型 1v1 3v3 5v5
        public string teamType;
    }

    [Serializable]
    public class RoomRequest
    {
        public int roomId;
        public int type;
    }

    [Serializable]
    public class LoginOrCancelRequest
    {
        // 0：登录 1：下线
        public int type;
    }

    [Serializable]
    public class HeroRequest
    {
        public int roomId;
        public int heroId;
        public int type;
        public int percent;
    }

    [Serializable]
    public class BattleRequest
    {
        public int roomId;
        public int type;
    }

    [Serializable]
    public class SendOpKeyRequest
    {
        public int roomId;
        public OpKey opKey;
    }
    
    public class ChatItem
    {
        public float timeCounter;
        public string chatMsg;
    }

    [Serializable]
    public class SendChatRequest
    {
        public int roomId;
        public string msg;
    }

    [Serializable]
    public class PingRequest
    {
        public uint pingId;
        public ulong sendTime;
    }
}